package org.gd136.ce.script.impl;

import org.gd136.ce.script.Script;
import org.gd136.ce.script.ScriptStage;

public class SelectEndScript extends Script {

	private static final String TAG = "#selectEnd";

	@Override
	public Script readScript(String scriptLine) {
		SelectEndScript ses = null;
		if (TAG.equals(scriptLine)) {
			ses = new SelectEndScript();
			if (SelectScript.getLastSelect() == null) {
				throw new IllegalArgumentException(
						"selectEnd 未处于select结尾! file[" + fileName + "] line["
								+ lineNum + "]");
			}
			SelectScript.endLastSelect(ses);
			ses.addToPool();
		}

		return ses;
	}

	@Override
	public void execute(ScriptStage stage) {
		// TODO Auto-generated method stub

	}

}
